package com.cds.alert.pojo;

import java.util.Date;

import javax.persistence.Entity;
import javax.persistence.Table;

import org.apache.commons.lang3.builder.ToStringBuilder;

/**
 * 
 * <p>
 * <p>
 * 类描述：文件访问记录表
 * <p>
 * 作     者： migrant
 * <p>
 * 日     期： 2014年3月10日
 * <p>
 * 时     间： 上午8:50:47
 * <p>
 */
@Entity
@Table(name = "alert_log_connect")
public class AlertLogConnect extends IdEntity {

	/**日志产生时间*/
	private Date logTime;
	/**源地址*/
	private String ip;
	/**源IP地址*/
	private String srcIp;
	/**源端口*/
	private int srcPort;
	/**目标IP地址*/
	private String destIp;
	/**目标端口*/
	private int destPort;
	/**协议*/
	private ProtocolType protocol;
	
	/**类型, 1: 出站; 2: 入站*/
	private Integer mode;

	/**MAC地址*/
	private String mac;
	
	public String getMac() {
		return mac;
	}

	public void setMac(String mac) {
		this.mac = mac;
	}
	
	public Date getLogTime() {
		return logTime;
	}

	public void setLogTime(Date logTime) {
		this.logTime = logTime;
	}

	public String getIp() {
		return ip;
	}

	public void setIp(String ip) {
		this.ip = ip;
	}

	public ProtocolType getProtocol() {
		return protocol;
	}

	public void setProtocol(ProtocolType protocol) {
		this.protocol = protocol;
	}

	public String getSrcIp() {
		return srcIp;
	}

	public void setSrcIp(String srcIp) {
		this.srcIp = srcIp;
	}

	public int getSrcPort() {
		return srcPort;
	}

	public void setSrcPort(int srcPort) {
		this.srcPort = srcPort;
	}

	public String getDestIp() {
		return destIp;
	}

	public void setDestIp(String destIp) {
		this.destIp = destIp;
	}

	public int getDestPort() {
		return destPort;
	}

	public void setDestPort(int destPort) {
		this.destPort = destPort;
	}

	public Integer getMode() {
		return mode;
	}

	public void setMode(Integer mode) {
		this.mode = mode;
	}

	@Override
	public String toString() {
		return ToStringBuilder.reflectionToString(this);
	}
}
